﻿<%@ Page Title="" Language="C#" MasterPageFile="M.master" %>
<%@ Register src="../module/Types-List.ascx" tagname="Types" tagprefix="inal" %>
<%@ Register src="../module/Product-List.ascx" tagname="Product" tagprefix="inal" %>
<script runat="server">
    public int Item_Id = 0;
    public Product product;
    public string RealText;
    protected void Page_Load(object sender, EventArgs e)
    {

        if (Request.QueryString["id"] != null)
        {
            Item_Id = Convert.ToInt32(Request.QueryString["Id"].ToString().Trim());
            product = new Product(Item_Id);
        }
    }
    public string FormatHtmlCode(string Text_Value)
    {
        ///* URL 选晰 */
        Text_Value = Utils.HtmlDecode(Text_Value);
        Text_Value = Text_Value.Replace("<br />", "");
        Text_Value = Text_Value.Replace("  ", "");
        Text_Value = Text_Value.Replace("\t", "");
        Text_Value = Text_Value.Replace("<BR>", "");
      //  Text_Value = Text_Value.Replace("_v", "_ss");
      // Text_Value = Text_Value.Replace("_V", "_ss");
        return Text_Value;
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title><%=product.Item_Name %> - <%=Lang.Show("WenSizeName")%></title>
<meta name="keywords" content="<%=product.Item_Name %>">
<meta name="description" content="<%=product.Item_Introduction %>">
<style>
#Columns{ background-color:#fff;}
#Columns span{ background-image:none;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div id="Product_View" class="layout">
        <img id="Product_Img" alt="<%=product.Item_Name %>" src="../DataFile/Product/<%=product.Create_Time.ToString("yyyyMM") %>/<%=product.Create_Time.ToString("ddHHmmss") %>.jpg" />
        <div>
            <h3><%=product.Item_Name %></h3>
            <h4><%=Lang.Show("productProperty5")%> :</h4>
            <p id="Item_Id"><%=product.Property5 %></p>
            
            <h4><%=Lang.Show("Item_Instructions")%> :</h4>
            <p><%=product.Item_Instructions %></p>
           <h4><%=Lang.Show("productProperty1")%> :</h4>
            <p><%=product.Property1 %></p>
            <h4><%=Lang.Show("productProperty2")%> : </h4>
            <p><%=product.Property2 %></p>
            <h4><%=Lang.Show("productProperty3")%> :</h4>
            <p><%=product.Property3 %> <%=Lang.Show("productProperty3_Text")%></p>
            <h4><%=Lang.Show("productProperty4")%> : </h4>
            <p><%=product.Property4 %> <%=Lang.Show("productProperty4_Text")%></p> 
          

            

        </div>
        <code><%=Lang.Show("Item_Price")%> : <%=product.Item_Price %> <%=Lang.Show("سوم")%></code>
    </div>

     <div class="ch10"></div>

    <div class="layout">
        <div id="Introduction"><%=FormatHtmlCode(product.Item_Introduction)%></div>
    </div>

    <div class="ch10"></div>


    <div class="layout">
    <div id="Product">
    <inal:Product runat="server" Top_Size="16"  />
    </div>
    </div>


</asp:Content>

